import Cookie from 'js-cookie'

const isLogin = () => !!Cookie.get('token');
const getToken = () => Cookie.get('token');
const clearUserInfo = () => {
  Cookie.remove('token');
}
export  {
  isLogin,
  getToken,
  clearUserInfo
}